//
//  RSSParser.h
//  VNExpressRSS
//
//  Created by Vinh Huynh on 8/22/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class News;

@protocol RSSParserDeleagte;

@interface RSSParser : NSObject <NSXMLParserDelegate>{
	NSMutableString *currentElement;
	NSMutableString *currentElementValue;
	NSMutableData *respondData;
	NSMutableArray *rssNews;
	News *news;
	id<RSSParserDeleagte> appDelegate;
	BOOL isNews;
}

@property (nonatomic, retain) NSMutableString *currentElement;
@property (nonatomic, retain) NSMutableString *currentElementValue;
@property (nonatomic, retain) NSMutableData *respondData;
@property (nonatomic, retain) NSMutableArray *rssNews;
@property (nonatomic, retain) News *news;
@property (nonatomic, retain) id<RSSParserDeleagte> appDelegate;
@property (nonatomic, assign) BOOL isNews;

-(void) getNewsFromURL:(NSString *)url withDelegate:(id)aDelegate;

@end

@protocol RSSParserDeleagte

-(void) didEndGetNews:(NSMutableArray *)array;

@end